package cn.com.joycode.nimble.core.utils;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class NbMsg<T> extends HashMap<String, Object> {

    private final Map<String, Object> map = new HashMap<>();

    private T body;

    @SuppressWarnings("unchecked")
    public <V> V getValue(String key) {
        return (V) map.get(key);
    }

}
